<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title><ui:insert name="pagetitle">#{language.appTitle} - #{language.appSubtitle}</ui:insert>
	</title>
	<h:outputStylesheet name="style.css" library="css" />
	<h:outputScript name="pt_BR.js" library="locales" />
</h:head>
<h:body>
	<p:layout fullPage="true">
		<p:layoutUnit id="header" position="north"
			styleClass="ui-widget-header">
			<ui:insert name="header">
				<h1>
					<h:outputText value="#{language.appTitle}" />
				</h1>
				<h2>
					<h:outputText value="#{language.appSubtitle}" />
				</h2>
				<p:separator />
				<h:form>
					<h:outputText value="#{language.appWelcome} TODO" />
					<p:commandButton id="btSair" onclick="dialogLogout.show()"
						value="#{language.appBtnLogout}" icon="ui-icon-transferthick-e-w"
						style="float:right;" />
					<p:confirmDialog id="confirmDialogLogout" widgetVar="dialogLogout"
						closable="true" severity="help" appendToBody="true"
						header="#{language.appConfirmHeader}"
						message="#{language.msgLogoutConfirm}" width="400">
						<p:commandButton id="btnConfirmLogout"
							action="#{loginController.logout}" value="#{language.btnConfirm}"
							icon="ui-icon-check" />
						<p:commandButton id="btnDeclineLogout"
							onclick="dialogLogout.hide()" value="#{language.btnCancel}"
							icon="ui-icon-cancel" />
					</p:confirmDialog>
				</h:form>
			</ui:insert>
		</p:layoutUnit>

		<p:layoutUnit id="footer" position="south" size="50">
			<ui:insert name="footer">
				<h:outputText value="#{language.appCopyright}" escape="false" />
			</ui:insert>
		</p:layoutUnit>

		<p:layoutUnit position="west" size="180"
			header="#{language.appMainMenu}" collapsible="true">
			<h:form>

			</h:form>
		</p:layoutUnit>

		<p:layoutUnit id="center" position="center">
			<h:form>
				<ui:insert name="title">
					<h3>
						<h:outputText value="#{language.homePageTitle}" />
					</h3>
				</ui:insert>
				<p:separator />
				<p:messages id="globalMessage" autoUpdate="true" showDetail="true"
					globalOnly="true" />

				<ui:insert name="content">
				
				
				</ui:insert>
			</h:form>
		</p:layoutUnit>

	</p:layout>
</h:body>
</html>